package com.xyx.ssm.dao;

import java.util.List;

import com.xyx.ssm.po.Syauthority;

public interface SyauthorityMapper {
	/**
	 * 删除
	 * 
	 * @param record
	 * @return
	 */
	int deleteByPrimaryKey(Integer id);

	// 增加权限
	int insert(Syauthority record);

	int insertSelective(Syauthority record);

	Syauthority selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Syauthority record);

	int updateByPrimaryKey(Syauthority record);
	
	public List<Syauthority> selallauthority();
	public int deleteall(int roleid);
}